using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN TinhThanhService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: TinhThanhService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class TinhThanhService : ITinhThanhService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: TinhThanh_ID</para>
		/// <para>Output: TinhThanhEntity</para>
		///</summary>
		public TinhThanhEntity SelectOne(int TinhThanh_ID){
			TinhThanhDAO dao = new TinhThanhDAO();
			return dao.SelectOne(TinhThanh_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOneByMaTinhThanh</para>
		/// <para>Input: MaTinhThanh</para>
		/// <para>Output: TinhThanhEntity</para>
		///</summary>
		public TinhThanhEntity SelectOneByMaTinhThanh(string MaTinhThanh){
			TinhThanhDAO dao = new TinhThanhDAO();
			return dao.SelectOneByMaTinhThanh(MaTinhThanh);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of TinhThanhEntity</para>
		///</summary>
		public List<TinhThanhEntity> SelectAll(){
			TinhThanhDAO dao = new TinhThanhDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			TinhThanhDAO dao = new TinhThanhDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of TinhThanhEntity</para>
		///</summary>
		public List<TinhThanhEntity> SelectAllFilter(string strFilter){
			TinhThanhDAO dao = new TinhThanhDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			TinhThanhDAO dao = new TinhThanhDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: TinhThanhEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(TinhThanhEntity o){
			TinhThanhDAO dao = new TinhThanhDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: TinhThanhEntity</para>
		/// <para>Output: TinhThanhEntity</para>
		///</summary>
		public TinhThanhEntity SaveRet(TinhThanhEntity o){
			TinhThanhDAO dao = new TinhThanhDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of TinhThanhEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<TinhThanhEntity> list){
			TinhThanhDAO dao = new TinhThanhDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of TinhThanhEntity</para>
		/// <para>Output: List of TinhThanhEntity</para>
		///</summary>
		public List<TinhThanhEntity> SaveListRet(List<TinhThanhEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Update</para>
		/// <para>Input: TinhThanhEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(TinhThanhEntity o){
			TinhThanhDAO dao = new TinhThanhDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of TinhThanhEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<TinhThanhEntity> list){
			TinhThanhDAO dao = new TinhThanhDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMaTinhThanh</para>
		/// <para>Input: NewMaTinhThanh,TinhThanh_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMaTinhThanh(string NewMaTinhThanh,int TinhThanh_ID){
			TinhThanhDAO dao = new TinhThanhDAO();
			return dao.UpdateMaTinhThanh(NewMaTinhThanh,TinhThanh_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateTenTinhThanh</para>
		/// <para>Input: NewTenTinhThanh,TinhThanh_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTenTinhThanh(string NewTenTinhThanh,int TinhThanh_ID){
			TinhThanhDAO dao = new TinhThanhDAO();
			return dao.UpdateTenTinhThanh(NewTenTinhThanh,TinhThanh_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateGhiChu</para>
		/// <para>Input: NewGhiChu,TinhThanh_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateGhiChu(string NewGhiChu,int TinhThanh_ID){
			TinhThanhDAO dao = new TinhThanhDAO();
			return dao.UpdateGhiChu(NewGhiChu,TinhThanh_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateQuocGia_ID</para>
		/// <para>Input: NewQuocGia_ID,TinhThanh_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateQuocGia_ID(int NewQuocGia_ID,int TinhThanh_ID){
			TinhThanhDAO dao = new TinhThanhDAO();
			return dao.UpdateQuocGia_ID(NewQuocGia_ID,TinhThanh_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Delete</para>
		/// <para>Input: TinhThanhEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(TinhThanhEntity o){
			TinhThanhDAO dao = new TinhThanhDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: TinhThanh_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int TinhThanh_ID){
			TinhThanhDAO dao = new TinhThanhDAO();
			return dao.DeleteByID(TinhThanh_ID);
		}
		#endregion

		#region Select join to QuocGia functions
		#endregion

		#region Select,delete by TinhThanh_ID functions
		#endregion

		#region Select,delete by QuocGia_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END TinhThanhWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

